﻿-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[DeleteExposureByKey] 	
@ExposureKey int
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;
DELETE FROM [ExposureCacheExtension] 
WITH (ROWLOCK)
WHERE [ExposureCacheId]=@ExposureKey

DELETE FROM [ExposureCache] 
WITH (ROWLOCK)
WHERE [Id]=@ExposureKey
END
;
